package com.treetao.union.web.freemark;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import freemarker.template.Configuration;

@Component
public class FreemarkerConfig {

	@Autowired
	private Configuration configuration;

	@Autowired
	private FreemarkDirective freemarkDirective;


	@PostConstruct
	public void setSharedVariable() {
		// 系统字典标签
		configuration.setSharedVariable("my", freemarkDirective);
	}
}
